<?php
class OrdenTrabajo extends AppModel {
	var $name = 'OrdenTrabajo';
         public $actsAs = array('Search.Searchable');
    public $filterArgs = array(array('name' => 'empresa', 'type' => 'like'));
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	var $belongsTo = array(
		'OrdenInspeccion' => array(
			'className' => 'OrdenInspeccion',
			'foreignKey' => 'orden_inspeccion_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'TipoOrdenTrabajo' => array(
			'className' => 'TipoOrdenTrabajo',
			'foreignKey' => 'tipo_orden_trabajo_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Estado' => array(
			'className' => 'Estado',
			'foreignKey' => 'estado_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

	var $hasMany = array(
		'OrdenTrabajoAgregado' => array(
			'className' => 'OrdenTrabajoAgregado',
			'foreignKey' => 'orden_trabajo_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

}
?>